package com.pn.service.impl;

import com.pn.entity.Role;
import com.pn.entity.UserRole;
import org.springframework.stereotype.Service;

import org.springframework.beans.factory.annotation.Autowired;

import com.pn.mapper.UserRoleMapper;
import com.pn.service.UserRoleService;

import java.util.List;

@Service
public class UserRoleServiceImpl implements UserRoleService{

    @Autowired
    private UserRoleMapper userRoleMapper;

    /**
     * @param userId
     * @return
     */
    @Override
    public List<Role> queryUserRole(Integer userId) {
        return userRoleMapper.userRoleByUid(userId);
    }
}
